@extends('admin_system/public/layout')
@section('content')


    {{--文件目录--}}
    @if($type == 'files')

        <table class="table table-bordered">
            @foreach($files as $file)
                <tr><td><a href="/Tools/CreateData/methodPort?method=showErrorLog&file={{$file}}">{{$file}}</a></td></tr>
            @endforeach
        </table>

    {{--文件内容--}}
    @else
        <div style="position: fixed;top:20px;
        right:20px;">
            <a class="btn btn-danger" href="?method=showErrorLog&file={{$file}}&page={{$page - 1}}&perpage={{$perpage}}">上一页</a>
            <a class="btn btn-info"   href="?method=showErrorLog&file={{$file}}&page={{$page + 1}}&perpage={{$perpage}}">下一页</a>
        </div>
        <div class="h10 mt10 mb10"></div>

        @foreach($contents as $content)
            <table class="table table-bordered">
                @foreach($content as $single)
                    <tr><td>{{$single}}</td></tr>
                @endforeach
            </table>
        @endforeach

    @endif

@endsection